<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h2>회원님의 객실이 등록되었습니다.</h2>
<table border="1" cellspacing="0" width="700" cellpadding="10" bgcolor="#FFFAF0">
<tr>
<td width="200" align="center">방번호</td>
<td>${requestScope.rdto.roomNo }<br></td>
</tr>

<tr>
<td align="center">객실 종류 </td>
<td>${requestScope.rdto.property.propertyTypeContents }<br></td>
</tr>

<tr>
<td align="center">랜트범위</td>
<td>${requestScope.rdto.privacy.privacyContents }<br></td>
</tr>

<tr>
<td align="center">숙박가능인원</td>
<td>${requestScope.rdto.accommodates }명<br></td>
</tr>

<tr>
<td align="center">침실수 </td>
<td>${requestScope.rdto.bedrooms }개<br></td>
</tr>

<tr>
<td align="center">제목 </td>
<td>${requestScope.rdto.title }<br></td>
</tr>

<tr>
<td align="center">설명</td>
<td>${requestScope.rdto.description }<br></td>
</tr>

<tr>
<td align="center">휴대폰번호</td>
<td>${requestScope.rdto.phone }<br></td>
</tr>

<tr>
<td align="center">국가</td>
<td>${requestScope.rdto.nation }<br></td>
</tr>

<tr>
<td align="center">주소</td>
<td>${requestScope.rdto.address.sido } ${requestScope.rdto.address.gugun } ${requestScope.rdto.address.dong } ${requestScope.rdto.addDetail }</td>
</tr>

<tr>
<td align="center">우편번호</td>
<td>${requestScope.rdto.address.zipcode }<br></td>
</tr>

<tr>
<td align="center">1일 기준 가격($)</td>
<td>$${requestScope.rdto.price1 }<br></td>
</tr>

<tr>
<td align="center">7일 기준 가격($)</td>
<td>$${requestScope.rdto.price7 }<br></td>
</tr>

<tr>
<td align="center">30일 기준 가격($)</td>
<td>$${requestScope.rdto.price30 }<br></td>
</tr>

<tr>
<td align="center">체크인 시간</td>
<td>${requestScope.rdto.checkInTime }시<br></td>
</tr>

<tr>
<td align="center">체크아웃 시간</td>
<td>${requestScope.rdto.checkOutTime }시<br></td>
</tr>

<tr>
<td align="center">환불정책</td>
<td>${requestScope.rdto.refund.refundPolicyContents }<br></td>
</table>
<p>
<h4>객실 사진</h4>
	<c:forEach items="${requestScope.flist }" var="fdto" varStatus="cnt">				
		<c:choose>
			<c:when test="${cnt.count==1 }">
				<img  width="600px" height="400px" src="/${initParam.context_root }/uproomfile/${fdto.fileName }"><br>
			</c:when>
			<c:otherwise>
				<img  width="300px" height="200px" src="/${initParam.context_root }/uproomfile/${fdto.fileName }">
			</c:otherwise>
		</c:choose>
	</c:forEach>

<hr>
<%-- <a href='modifymenu.do?roomNo=${requestScope.rdto.roomNo }'>방정보수정</a>
<a href='myRoomList.do?memberId=${requestScope.rdto.memberId }'>내가등록한 방목록</a>
<a href="selectByadmin.do?memberId=${requestScope.rdto.memberId}">내가 등록한 방 목록</a>
<a href='deleteRoom.do?roomNo=${requestScope.rdto.roomNo }&memberId=${requestScope.rdto.memberId }'>등록한 방 삭제</a> --%>
</body>
</html>